import { Controller, Get, Post,Param } from '@nestjs/common';
import { CatsService } from './cats.service';

@Controller('cats')
export class CatsController {
  constructor(private readonly CatsServicePro: CatsService) {}

  @Get('/')
  find(): string {
    return this.CatsServicePro.find();
  }

  @Post('/find/:id')
  async getCat(@Param('id') data): Promise<{}>{
     return await this.CatsServicePro.getCat('a');
  }
}
